package it.polimi.swKnights.SWIMv2.ejb.feedbacks;

import it.polimi.swKnights.SWIMv2.ejb.exceptions.InvalidLoginPrivilegesException;
import it.polimi.swKnights.SWIMv2.ejb.exceptions.LoginFailException;

import java.util.List;
import java.util.Map;

import javax.ejb.Remote;

@Remote
public interface FeedbackHandlerRemote {
	
	
    public List<Map<String, Object>> getFeedbacksOf(String feedbackOwnerUser, String askerUserName,
    		String askerPassword) throws LoginFailException, InvalidLoginPrivilegesException;

	public void disputeFeedback(String idFeed, String gotBy, String username,
			String password) throws LoginFailException, InvalidLoginPrivilegesException;

	Double getUserFeedbackAverage(String userName);

}
